<html>
    <head>
        <script>
            if (window.testRunner) {
                testRunner.dumpAsText();
                testRunner.waitUntilDone();
            }

            function debug(str) {
                document.getElementById('console').innerHTML += str + "<br>";
            }
        </script>
    </head>
    <body>
        <object>
            <p>This test verifies that an &lt;embed&gt; tag is rendered along with other fallback content when an &lt;object&gt; fails to load.  On success, you should see this text, followed by 'PASS'.</p>
            <embed name="plugin" type="application/x-blink-test-plugin">
        </object>
        <div id="console"></div>
        <script>
            document.querySelector("embed").addEventListener("message", function (message) {
              debug("PASS");
              if (window.testRunner)
                  testRunner.notifyDone();
            });
        </script>
    </body>
</html>
